Classes in the Crystal Report Engine Class Library
The Crystal REC Library consists of two primary classes:
- The class CRPEngine, controls the entire Crystal Report Engine. It is designed so that there should only be one CRPEngine object in the entire application. The CRPEngine object contains methods that are common to all print jobs (i.e., SQL connections, version information, etc.). More importantly, it is responsible for creating and managing all CRPEJob objects.
- The class CRPEJob, controls print jobs. A print job is a request for a report to be processed and printed, previewed, or exported. You do not construct a CRPEJob object directly; instead, you request a job instance from the CRPEngine class and receive a pointer to a CRPEJob object. It is the CRPEJob object that allows you access to the attributes of a print job.
Both classes are derived from the MFC CObject class and provide all of the functionality of that class, including runtime class information and object diagnostic output.